#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<stdbool.h>
int cmp(const void* p1, const void* p2)
{
    return *((char*)p1) - *((char*)p2);
}
bool isAnagram(char* s, char* t) {
    int lens = strlen(s);
    int lent = strlen(t);
    if (lens != lent)
    {
        return false;
    }
    qsort(s, lens, sizeof(char), cmp);
    qsort(t, lent, sizeof(char), cmp);
    int i = 0;
    while (s[i] != '\0')
    {
        if (s[i] != t[i])
        {
            return false;
        }
        i++;
    }
    return true;
}